import request from "@/utils/request";

//  用户登录接口
export function login(data) {
  return request({
    url: "/sys/login",
    method: "POST",
    data
  });
}

//  获取用户的基本资料
export function getUserInfo() {
  return request({
    url: "/sys/profile",
    method: "post"
  });
}

//  获取用户头像
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  });
}

export function getInfo(token) {}

export function logout() {}
